package com.eva.client.api;

import com.eva.client.biz.ClientConfigBiz;
import com.eva.framework.cache.CacheProxy;
import com.eva.framework.common.api.BaseController;
import com.eva.framework.common.constants.CacheKeys;
import com.eva.framework.common.model.ApiResponse;
import com.eva.framework.dict.model.SystemDictCache;
import com.eva.system.config.model.ClientConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Api(tags = "客户端配置")
@RestController
@RequestMapping("/client/config")
public class ClientConfigController extends BaseController {

    @Resource
    private ClientConfigBiz clientConfigBiz;

    @ApiOperation("获取配置")
    @GetMapping
    public ApiResponse<ClientConfig> getConfig () {
        return ApiResponse.success(clientConfigBiz.getClientConfig());
    }
}
